package com.llynic.designdemo.decoratormode;

public class Decorator implements Component{

    protected Component component;

    public Decorator(com.llynic.designdemo.decoratormode.Component component) {
        super();
        this.component = component;
    }

    @Override
    public void say() {
        this.component.say();
    }

    @Override
    public void buy() {
        this.component.buy();
    }
}
